package cn.wowjoy.pda.android_pharmacy.model.commonEntity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

import cn.wowjoy.pda.android_pharmacy.model.xmlEntity.doorPatientInfo.DoorPatientInfoBeen;

public class PrescriptionVO implements Serializable  {
        @SerializedName("medicines")
        private List<DoorPatientInfoBeen> mMedicines;
        @SerializedName("prescription")
        private Prescription mPrescription;

    public List<DoorPatientInfoBeen> getMedicines() {
        return mMedicines;
    }

    public void setMedicines(List<DoorPatientInfoBeen> medicines) {
        mMedicines = medicines;
    }

    public Prescription getPrescription() {
        return mPrescription;
    }

    public void setPrescription(Prescription prescription) {
        mPrescription = prescription;
    }

    //订单信息
    public  class Medicines implements Serializable {
              private String  medicineId;
              private String  prescriptionId;
              private String  djjlid;
              private String  zzypmc;
              private String  cfypsl;
              private String  ypbzdw;
              private String  zzypgg;
              private String  ypcdid;
              private String  ypcdmc;
              private String  kfmkid;
              private String  kfwzid;
              private String  kfwzmc;
              private String  ypspbm;
              private String  ypjgbm;
              private String  sfgwpb;
              private String  yppmgg;
              private String  sflcpb;


   }
    //病人信息
//            "prescriptionId": "f4f78e09a0c04e6bbf2fef25011ae670",
//             "patientId": "60019929",
//             "mergeId": null,
//             "patientRecordId": "B10102342",
//             "djjlid": "706327",
//             "brnldw": "44岁",
//             "brdaxb": "2",
//             "brdaxm": "郭卫娟",
//             "cfkdsj": "2018-06-18 16:00:00",
//             "cfkdks": "骨科",
//             "status": "0"
    public   class Prescription implements Serializable{
        private String brnldw;//年纪

        private String cfkdsj; //开单日期

        private String cfkdks;//开单科室

        private String brdaxb;  //性别

        private String mergeId; //合并ID

        private String brdaxm;//姓名

        private String djjlid; //his单号

        private String patientId;  //唯一ID  病例号

        private String patientRecordId; //就诊卡号
        private String prescriptionId;  //药方ID
        private String status;  //状态

        public String getBrnldw() {
            return brnldw;
        }

        public void setBrnldw(String brnldw) {
            this.brnldw = brnldw;
        }

        public String getCfkdsj() {
            return cfkdsj;
        }

        public void setCfkdsj(String cfkdsj) {
            this.cfkdsj = cfkdsj;
        }

        public String getCfkdks() {
            return cfkdks;
        }

        public void setCfkdks(String cfkdks) {
            this.cfkdks = cfkdks;
        }

        public String getBrdaxb() {
            return brdaxb;
        }
        public String getBrdaxbC() {
            if("2".equals(brdaxb)){
                return "女";
            }else{
                return "男";
            }
        }
        public void setBrdaxb(String brdaxb) {
            this.brdaxb = brdaxb;
        }

        public String getMergeId() {
            return mergeId;
        }

        public void setMergeId(String mergeId) {
            this.mergeId = mergeId;
        }

        public String getBrdaxm() {
            return brdaxm;
        }

        public void setBrdaxm(String brdaxm) {
            this.brdaxm = brdaxm;
        }

        public String getDjjlid() {
            return djjlid;
        }

        public void setDjjlid(String djjlid) {
            this.djjlid = djjlid;
        }

        public String getPatientId() {
            return patientId;
        }

        public void setPatientId(String patientId) {
            this.patientId = patientId;
        }

        public String getPatientRecordId() {
            return patientRecordId;
        }

        public void setPatientRecordId(String patientRecordId) {
            this.patientRecordId = patientRecordId;
        }

        public String getPrescriptionId() {
            return prescriptionId;
        }

        public void setPrescriptionId(String prescriptionId) {
            this.prescriptionId = prescriptionId;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getBillingTimeC() {
            if(null == cfkdsj){
                return "开单时间: 暂无";
            }
            return "开单时间: "+cfkdsj;
        }

        public String getDepartment() {
            if(null == cfkdks){
                return "暂无";
            }
            return cfkdks;
        }
        public String getOrderNumberC() {
            if(null == djjlid){
                return "NO: 暂无";
            }
            return "NO: "+djjlid;
        }
    }

    }